/*
 * Copyright (C) 2012 Matt Broadstone
 * Contact: http://code.google.com/p/qconnman/
 *
 * This file is part of the QConnman Library.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 */

#include "types.h"

// dbus marshalling/Demarshalling operators
QDBusArgument &operator<<(QDBusArgument &argument, const ObjectPropertyData &data)
{
    argument.beginStructure();
    argument << data.path << data.properties;
    argument.endStructure();
    return argument;
}

const QDBusArgument &operator>>(const QDBusArgument &argument, ObjectPropertyData &data)
{
    argument.beginStructure();
    argument >> data.path >> data.properties;
    argument.endStructure();
    return argument;
}
